package org.skydiveapplibrary.data;

public class Settings
{
	private UnitOfMeasure unitOfMeasure;
	private Integer exitAltitude;
	private Integer deploymentAltitude;
	
	public UnitOfMeasure getUnitOfMeasure()
	{
		return unitOfMeasure;
	}
	public void setUnitOfMeasure(UnitOfMeasure unitOfMeasure)
	{
		this.unitOfMeasure = unitOfMeasure;
	}
	public Integer getExitAltitude()
	{
		return exitAltitude;
	}
	public void setExitAltitude(Integer exitAltitude)
	{
		this.exitAltitude = exitAltitude;
	}
	public Integer getDeploymentAltitude()
	{
		return deploymentAltitude;
	}
	public void setDeploymentAltitude(Integer deploymentAltitude)
	{
		this.deploymentAltitude = deploymentAltitude;
	}
	
	public WeightUnit getWeightUnit()
	{
		return (getUnitOfMeasure() == UnitOfMeasure.US) ?
				WeightUnit.Pounds : WeightUnit.Kilograms;
	}
	
	public AltitudeUnit getAltitudeUnit()
	{
		return (getUnitOfMeasure() == UnitOfMeasure.US) ?
				AltitudeUnit.Feet : AltitudeUnit.Meters;
	}
}
